//exam_2_4_4.c: sum of 1 to 100.
#include <stdio.h>

int main(void)
{
    int i;
    int sum1 = 0;
    for(i = 1; i <= 100; i++)
    {
        sum1 += i;
    }

    printf("sum 1 to 100 is : %d\n", sum1);
    return 0;
}
